package com.shenmazong.demo1907amongo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2021/12/8 10:36
 */

@Data
@TableName(value = "tb_user")
@Document("tb_user")
public class TbUser {
    @TableId(value = "user_id", type = IdType.AUTO)
    @Id
    private Integer userId;

    private String userName;
    private String userPass;
    private String userImage;
    private String realName;
    private Integer userGender;
    private Integer mongoFlag;
    private String createTime;

    @TableField(exist = false)
    private String blogTitle;

}
